package com.lemon.components.ant.docmaker.dto;

import java.util.Objects;

import com.lemon.components.ant.docmaker.DocConverter.DocType;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class DocRsp {

	private String code;
	private String srcCode;
	private DocType type;
	private Integer length;
	private String remark1;
	private String remark2;
	private Boolean isRequire;
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DocRsp other = (DocRsp) obj;
		return Objects.equals(code, other.code);
	}
	@Override
	public int hashCode() {
		return Objects.hash(code);
	}
	
}
